package cq.com.cn.model;

import java.util.Date;

public class GoodsCardModel {
    private int id;
    private int userId;
    private int bookId;
    private String bookImg;
    private String bookName;
    private Date createTime;
    private double price;
    private int stock;
    private int status;

    public GoodsCardModel(int id, int userId, int bookId, String bookImg, String bookName, Date createTime, double price, int stock, int status) {
        this.id = id;
        this.userId = userId;
        this.bookId = bookId;
        this.bookImg = bookImg;
        this.bookName = bookName;
        this.createTime = createTime;
        this.price = price;
        this.stock = stock;
        this.status = status;
    }

    public GoodsCardModel() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public String getBookImg() {
        return bookImg;
    }

    public void setBookImg(String bookImg) {
        this.bookImg = bookImg;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    @Override
    public String toString() {
        return "GoodsCardModel{" +
                "id=" + id +
                ", userId=" + userId +
                ", bookId=" + bookId +
                ", bookImg='" + bookImg + '\'' +
                ", bookName='" + bookName + '\'' +
                ", createTime=" + createTime +
                ", price=" + price +
                ", stock=" + stock +
                ", status=" + status +
                '}';
    }
}
